package com.wanmait.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * Created by Mybatis Generator 2023/12/15
 */
@Data
@TableName(value = "movie_types")
@Accessors(chain = true)
public class MovieTypes implements Serializable {
    /**
     * 电影id
     */
    @TableField(value = "movie_id")
    private Integer movieId;

    @TableField(exist = false)
    private Movie movie;

    /**
     * 电影类型id
     */
    @TableField(value = "movie_type_id")
    private Integer movieTypeId;

    @TableField(exist = false)
    private MovieType movieType;

    /**
     * 添加人id
     */
    @TableField(value = "insert_admin_id")
    private Integer insertAdminId;

    /**
     * 修改人id
     */
    @TableField(value = "update_admin_id")
    private Integer updateAdminId;

    /**
     * 添加时间
     */
    @TableField(value = "insert_time")
    private Date insertTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_MOVIE_ID = "movie_id";

    public static final String COL_MOVIE_TYPE_ID = "movie_type_id";

    public static final String COL_INSERT_ADMIN_ID = "insert_admin_id";

    public static final String COL_UPDATE_ADMIN_ID = "update_admin_id";

    public static final String COL_INSERT_TIME = "insert_time";

    public static final String COL_UPDATE_TIME = "update_time";
}